package com.ruoyi.gateway.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息流水记录对象 iot_message_flow_log
 *
 * @author 白向阳
 * @date 2025-09-28
 */
public class MessageFlowLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 客户端设备ID */
    @Excel(name = "客户端设备ID")
    private String clientClientId;

    /** 平台客户端ID */
    @Excel(name = "平台客户端ID")
    private String platformClientId;

    /** 方向：up,down */
    @Excel(name = "方向：up,down")
    private String direction;

    /** 设备主题 */
    @Excel(name = "设备主题")
    private String deviceTopic;

    /** 平台主题 */
    @Excel(name = "平台主题")
    private String platformTopic;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String messageContent;

    /** 消息大小 */
    @Excel(name = "消息大小")
    private Long messageSize;

    /** 状态：success,failed */
    @Excel(name = "状态：success,failed")
    private String status;

    /** 错误信息 */
    @Excel(name = "错误信息")
    private String errorMessage;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setClientClientId(String clientClientId)
    {
        this.clientClientId = clientClientId;
    }

    public String getClientClientId()
    {
        return clientClientId;
    }

    public void setPlatformClientId(String platformClientId)
    {
        this.platformClientId = platformClientId;
    }

    public String getPlatformClientId()
    {
        return platformClientId;
    }

    public void setDirection(String direction)
    {
        this.direction = direction;
    }

    public String getDirection()
    {
        return direction;
    }

    public void setDeviceTopic(String deviceTopic)
    {
        this.deviceTopic = deviceTopic;
    }

    public String getDeviceTopic()
    {
        return deviceTopic;
    }

    public void setPlatformTopic(String platformTopic)
    {
        this.platformTopic = platformTopic;
    }

    public String getPlatformTopic()
    {
        return platformTopic;
    }

    public void setMessageContent(String messageContent)
    {
        this.messageContent = messageContent;
    }

    public String getMessageContent()
    {
        return messageContent;
    }

    public void setMessageSize(Long messageSize)
    {
        this.messageSize = messageSize;
    }

    public Long getMessageSize()
    {
        return messageSize;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setErrorMessage(String errorMessage)
    {
        this.errorMessage = errorMessage;
    }

    public String getErrorMessage()
    {
        return errorMessage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("clientClientId", getClientClientId())
            .append("platformClientId", getPlatformClientId())
            .append("direction", getDirection())
            .append("deviceTopic", getDeviceTopic())
            .append("platformTopic", getPlatformTopic())
            .append("messageContent", getMessageContent())
            .append("messageSize", getMessageSize())
            .append("status", getStatus())
            .append("errorMessage", getErrorMessage())
            .append("createTime", getCreateTime())
            .toString();
    }
}
